package yang.java8.lambda;

public class RunnableCase {

	public static void main(String[] args) {
		old();
		newF();
	}
	
	public static void old() {
		new Thread(new Runnable() {
			
			public void run() {
				System.out.println("Before Java8");
			}
			
		}).start();
	}
	
	public static void newF() {
		new Thread( () -> System.out.println("In Java8!") ).start();
	}

}
